package com.cqjtu.eecs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 毕业要求
 * </p>
 *
 * @author
 * @since 2022-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Requirement对象", description="毕业要求")
public class Requirement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "毕业要求编号")
    @TableId(value = "requirement_id", type = IdType.AUTO)
    private Integer requirementId;

    @ApiModelProperty(value = "培养方案编号")
    private Integer pid;

    @ApiModelProperty(value = "毕业要求代码")
    private String requirementCode;

    @ApiModelProperty(value = "毕业要求描述")
    private String requirementDesc;

    @ApiModelProperty(value = "上级毕业要求代码")
    private String preRequirementId;

    public Requirement() {
    }

    public Requirement(Integer requirementId,
                       Integer pid,
                       String requirementCode,
                       String requirementDesc,
                       String preRequirementId) {
        this.requirementId = requirementId;
        this.pid = pid;
        this.requirementCode = requirementCode;
        this.requirementDesc = requirementDesc;
        this.preRequirementId = preRequirementId;
    }
}
